package com.edu.neusoft.users.service.impl;

import com.edu.neusoft.users.domain.JobPosting;
import com.edu.neusoft.users.mapper.JobPostingMapper;
import com.edu.neusoft.users.service.IJobPostingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobPostingService implements IJobPostingService {

    @Autowired
    private JobPostingMapper jobPostingMapper;

    @Override
    public List<JobPosting> getAllJobPostingList(){
        return jobPostingMapper.getAllJobPostingList();
    }


    @Override
    public int createJobPosting(JobPosting jobPosting){
        return jobPostingMapper.createJobPosting(jobPosting);
    }

}
